home *** CD-ROM | disk | FTP | other *** search
- Path: zetnet.co.uk!demon!alex
- From: alex@warp.demon.co.uk (Alex Tucker)
- Newsgroups: comp.sys.amiga.programmer
- Subject: gcc & regargs
- Date: 28 Jan 96 10:36:17 GMT
- Organization: Skipsea, East Yorks, UK
- Message-ID: <alex.04j6@warp.demon.co.uk>
- NNTP-Posting-Host: warp.demon.co.uk
- Summary: How to get gcc to pass function arguments in registers
- Keywords: gcc, register, function
- X-NNTP-Posting-Host: warp.demon.co.uk
- X-Newsreader: TIN [version 1.2 PL2]
-
- Is there an easy way to get gcc to pass function arguments into a function
- call as registers instead of on the stack, for use with e.g. hook functions?
-
- As an example, can gcc do the equivalent of the following in SAS C:
-
- ULONG __saveds __asm HookFunc(register __a0 struct Hook *hook,
- register __a2 APTR object,
- register __a1 APTR message);
- ???
-
- Wonderingly,
- Alex
-